﻿/// <reference path="C:\File\学习\Web前端\Angluar\learnangular\Angular\Content/js/angular1.4.8.js" />
angular.module('app', ['components'])
.controller('BeerCounter', function ($scope, $locale) {
    $scope.beer = [0, 1, 2, 3, 4, 5, 6];
    if ($locale.id=='en-us') {
        $scope.beerForms = {
            0: 'no beers',
            one: '{} beer',
            other: '{} beers'
        };
    } else {
        $scope.beerForms = {
            0: "00000",
            one: '{} 01',
            few: '{} 02',
            other:'{} 03'
        };
    }

});